<?php
include "../conn.php";
include "s-cookie.php";
$Teacherid = $_GET['teacherid'];
$StudentId = $_SESSION['s-id'];
?>
<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>教师课题选择</title>
    <link rel="stylesheet" type="text/css" href="../css/htmleaf-demo.css">
    <link rel="stylesheet" type="text/css" href="../css/nav.css">
    <link rel="stylesheet" type="text/css" href="../fonts/iconfont.css">

    <link rel="stylesheet" href="../css/bootstrap-theme.css"/>

    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <link rel="stylesheet" href="../css/bootstrap-theme.min.css"/>
    <link rel="stylesheet" href="../css/bootstrap.css"/>
    <script type="text/javascript" src="../js/bootstrap3.0.3.min.js"></script>

    <link rel="stylesheet" type="text/css" href="../css/style.css">

    <style>

    </style>

</head>

<body class="bodycolor">

<nav class="navbar navbar-default navbar-fixed-top" style="clear: left;">
    <div class="container">
        <div class="navbar-right navfont" id="navbar-collapse">
            <p>华软网络技术系毕业管理系统</p>
        </div>
        <a href="s-cookie.php?cookie=out" id="out">退出</a>
    </div>

</nav>

<div class="nav topx navbackground-s" id="nav">
    <div>

        <div style="border-bottom:1px solid rgba(255,255,255,.1)"><img src="../images/mini.png"></div>
    </div>
    <ul>
        <li class="nav-item">
            <a href="s-index.php"><i class="my-icon nav-icon icon_2"></i><span>首页</span><i class="my-icon nav-more"></i></a>

        </li>
        <li class="nav-item">
            <a href="s-mykt.php"><i class="my-icon nav-icon icon_1"></i><span>我的课题</span><i
                    class="my-icon nav-more"></i></a>
        </li>

        <li class="nav-item">
            <a href="s-examination.php"><i class="my-icon nav-icon icon_3"></i><span>成绩考核表</span><i
                    class="my-icon nav-more"></i></a>

        </li>
        <li class="nav-item">
            <a href="s-information.php"><i class="my-icon nav-icon icon_4"></i><span>我的资料</span><i
                    class="my-icon nav-more"></i></a>
        </li>
        <li class="nav-item">
            <a href="teachresearch.php"><i class="my-icon nav-icon icon_6"></i><span>选课</span><i
                    class="my-icon nav-more"></i></a>
        </li>
    </ul>
</div>

<div class="indexborder">

    <div class="bannerdiv">
        <!--colspan="2"-->

        <div class="box-inline indexdiv2 panel panel-default auto" align="center">
            <div class="panel panel-primary panel-success">
                <div class="panel-heading" style="padding: 0px;color: black;font-style:initial;">
                    <h3 class="panel-title " style="background-color: #536d90;padding: 15px;">教师课题选择</h3>
                </div>
                <div class="panel-body">
                    <table class="table  table-hover  table-striped">
                        <thead>
                        <tr class="thcolor">
                            <th>课题名</th>
                            <th>类别</th>
                            <th>来源</th>
                            <th>简介</th>
                            <th>选课</th>
                        </tr>
                        </thead>
                        <?
                        $sql = "select * from  project where Teacher_TeacherId=$Teacherid and activate=0";
                        $result = mysqli_query($conn, $sql);
                        while ($row = mysqli_fetch_array($result)) {
                            ?>
                            <tr>
                                <td data-label=""><?= $row[1] ?></td>
                                <td data-label=""><?= $row[3] ?></td>
                                <td data-label=""><?= $row[4] ?></td>
                                <td data-label=""><?= $row[5] ?></td>
                                <td data-label=""><input type="button" value="选课" onclick="choosub(<?= $row[0] ?>)"></td>
                            </tr>
                        <? } ?>

                    </table>
                    <button><a onclick="javascript:history.go(-1);">返回</button>

                    <script type="text/javascript" src="../js/jquery-1.11.0.min.js"></script>
                    <script>

                        function choosub(projectId) {
                            var Id = projectId;
                            window.location.href = "s-taskinfo.php?projectId=" + Id;
                        }
                    </script>
                </div>
            </div>
        </div>
    </div>



<script>
    window.jQuery || document.write('<script src="../js/jquery-1.11.0.min.js"><\/script>')
</script>
<script type="text/javascript" src="../js/nav.js"></script>

</body>

</html>














